from selenium import webdriver

driver = webdriver.Chrome()
driver.get('https://www.baidu.com/')
driver.maximize_window()
driver.get_screenshot_as_file("C:/Users/admin/Desktop/图片/"+'截图.png')
driver.quit()
